const express = require('express')
const router = express.Router();

router.get('/list', (req, res) => {
    res.json({
        list: [
            {
                id: 002,
                price:100,
                name:'鞋子'
            }
        ]
    })
})
// router.all
// router.use

// 可以实现路由的多层次嵌套
module.exports=router